<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <title>Title</title>
    <script src="lib/vue.js"></script>
</head>
<body>

<div id="app"></div>
<script>
    Vue.comment("mycom",{
      data:function () {
        return {
          msg:"这是组件中打他定义的数据"
        }
      }
    })
    var vm = new Vue({
      el:"#app",
      data:{},
      methods:{},
      filters:{},
      directives:{},
      components:{
        //定义实例私有组件
        login:{
          template:"<h1>这是私有组件</h1>"
        }
      }
    })
</script>
</body>
</html>